var tableElem = "LAY-route-build-log-list";
var tableToolsElem = "LAY-route-build-log-list-tools";
var formElem = "LAY-route-build-log-list-listform";
var formSubmitElem = "LAY-route-build-log-list-listform-submit";
var formUrl = '/home/routeBuildLog/listform'
var historyUrl = '/home/routeBuildLog/list'
var baseUrl = window.globalConfig.url_routeBuildLog


layui.use(['common'], function (common) {
    var $ = layui.$
        , table = layui.table

    var tableItem = table.render({
        elem: `#${tableElem}`
        , url: baseUrl
        , cols: [[
            {type: 'checkbox', fixed: 'left'}
            , {field: 'id', title: 'id', sort: true}
            , {field: 'name', title: '路由名称', sort: true}
            , {field: 'rewrite_url', title: '自定义路由'}
            // , {title: '操作', minWidth: 220, align: 'center', fixed: 'right', toolbar: `#${tableToolsElem}`}
        ]]
        , page: true
        , limit: 10
        , limits: [10, 15, 20, 25, 30]
        , text: {none: '暂无数据！'}
    });
});
